package server.persistencia;

import java.sql.SQLException;



public abstract class DAOFactory {
	public abstract DAOBeneficiario crearDAOBeneficiario() throws SQLException;
	public abstract DAOCentro crearDAOCentro() throws SQLException;

	public abstract DAODescripcionRol crearDAODescripcionRol() throws SQLException;
	public abstract DAOMedico crearDAOMedico() throws SQLException;
	public abstract DAOUsuario crearDAOUsuario() throws SQLException;
	
	public static DAOFactory getFactory(int opcion){
		switch(opcion){
			case 1:
				return new MySQLDAOFactory();
			default:
				break;
		}
		return null;
	}
}
